<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .main{
            width: 500px;
            height: 500px;
            margin: 400px auto;
            background-color: black;
            border-radius: 10px;
            text-align: center;
            line-height: 500px;
            font-size: 60px;
            position: relative;
        }
       
        .main::after, .main::before{
          
            content: "";
            position: absolute;
            width: 100%;height: 100%;
            border-radius: 10px;
            /* background-image: conic-gradient(from var(--angle),red ,blue,rgb(5, 235, 5),red); */
            background-image: conic-gradient(from var(--angle),red 45deg,transparent 180deg,blue 225deg,transparent 360deg); 
            left: 50%;
            top: 50%;
            translate: -50% -50%;
            z-index: -1;
            padding: 5px;
           
        }
        .main::before{
            filter: blur(1.5rem);
            opacity: 0.8;
        }
        
    </style>
</head>
<body>
    <div class="main">
        赛博朋克2077
    </div>
    <script>
        const main = document.querySelector('.main');
        let angle = 0;
         setInterval(() => {
            angle = (angle + 2) % 360; // 每帧增加 2 度
            main.style.setProperty('--angle', `${angle}deg`);
         }, 50);
    </script>
</body>
</html>